<?php

namespace App\Enums;

use App\Traits\EnumMethods;

enum DomainSource: string
{
    use EnumMethods;

    case ALIYUN = 'a';

    case CUSTOM = 'c';

    const SOURCE_MAP = [
        self::ALIYUN->value => '阿里云账户',
        self::CUSTOM->value => '自定义域名',
    ];

    public function toString(): string
    {
        return self::SOURCE_MAP[$this->value];
    }
}
